#include "setKNXMacCmd.h"

setKNXMacCmd::setKNXMacCmd(QObject *parent) :
    BaseCmd(parent)
{
    this->m_protocolType = ProtocolType::SWKNXProtol;
    this->m_functionCode = FunctionCode;
}
void setKNXMacCmd::unPackage(Package package)
{

}
Package setKNXMacCmd::toPackage()
{
    Package package;
    QByteArray body;

    package.setFunction(FunctionCode);
   body.append(DataTypeConver::intToByteArray(m_KNXMac,2));
    package.setBody(body);

    return package;
}
void setKNXMacCmd::setKNXMac(quint16 mac)
{
    m_KNXMac = mac;
}

